/*
 * rule_collection.h
 *
 *  Created on: Mar 29, 2015
 *      Author: silivas
 */

#ifndef SRC_RULE_COLLECTION_H_
#define SRC_RULE_COLLECTION_H_
#include <vector>
#include <string>
#include "rule.h"
class Rule_Collection {
public:
	void add_rule(const vector<string>::iterator begin, const vector<string>::iterator end){
		_rules.push_back(Rule(begin, end));
	}

	Rule& operator[](vector<Rule>::size_type i){
		return _rules[i];
	}

	int size(){
		return _rules.size();
	}

private:
	vector<Rule> _rules;
};



#endif /* SRC_RULE_COLLECTION_H_ */
